﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace simpleHotel.Business
{
    public class HotelBusiness
    {
        public DataTable GetCategories(int hotelId)
        {
            //TODO: must call to service to get data, below is just for testing purpose.
            
            var dt = new DataTable("test");
            dt.Columns.Add("Id", typeof(string));
            dt.Columns.Add("Name", typeof(string));
            for (int i = 0; i < 5; i++)
            {
                var row = dt.NewRow();
                row.ItemArray = new[] { (i+1).ToString(), "Name " + (i+1).ToString() };
                dt.Rows.Add(row);
            }

            return dt;
        }

    }
}
